package com.halflife.comeElectricity.orderMng.cancel;

import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface CancelOrderRepository {
    int deleteByPrimaryKey(Integer id);

    int insert(CancelOrder record);

    int insertSelective(CancelOrder record);

    CancelOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CancelOrder record);

    int updateByPrimaryKey(CancelOrder record);

    /**
     * 查询所有订单页面
     * @param record
     * @return
     */
    List<CancelOrder> selectCancelOrderByPage(HashMap<String, Object> param);

    /**
     *  查询订单数量
     * @param record
     * @return
     */
    int selectCancelCountOrderByPage(HashMap<String, Object> param);
}